<!--
 * @Description: In User Settings Edit
 * @Author: your name
 * @Date: 2019-09-06 16:16:52
 * @LastEditTime: 2019-09-18 08:38:33
 * @LastEditors: Please set LastEditors
 -->
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
	<f:layout name="Default" />
	<f:section name="content">

		<f:flashMessages />
		<div class="portlet light ">
			<div class="portlet-title">
				<div class="caption">
					<f:link.action action="list" arguments="{excelExport: 1,tab:tab,keyword:keyword,activity:activity}"
						class="btn btn-info">导出</f:link.action>
				</div>
				<div class="actions">
					<div class="btn-group btn-group-devided">
						<f:form action="list" name="search" class="form-inline" method="POST">
							<div class="input-group">
								<f:form.hidden name="activity" value="{activity}" />
								<f:form.hidden name="tab" value="{tab}" />
								<div class="input-icon">
									<i class="fa fa-search"></i>
									<f:form.textfield name="keyword" value="{keyword}" class="form-control"
										placeholder="请输入查询条件" />
								</div>
								<span class="input-group-btn">
									<f:form.submit class="btn btn-success" value="搜" />
									<f:link.page pageUid="{settings.goback}" style="margin-left: 10px;"
										class="btn btn-info btn-back">返回</f:link.page>
								</span>
							</div>
						</f:form>
					</div>
				</div>
				<f:widget.paginate objects="{signups}" as="signupsPagination" configuration="{settings.paginate}">
					<div class="portlet-body">
						<div class="table-scrollable"
							style="overflow-x: unset !important;overflow-y: unset !important;">
							<table class="tx_user table table-hover table-light">
								<thead>
									<tr class="uppercase">
										<th>序号</th>
										<th>活动名称</th>
										<th>姓名</th>
										<th>手机号</th>
										<th>报名时间</th>
										<th>签到时间</th>
										<th>状态</th>
										<th>操作</th>
									</tr>
								</thead>
								<tbody>
									<f:for each="{signupsPagination}" as="signup" iteration="itemIteration1">
										<tr>
											<td>
												{f:cObject(typoscriptObjectPath:'lib.calc',
												data:'{itemIteration1.cycle}+({page}-1)*{settings.paginate.itemsPerPage}')}
											</td>
											<td>{signup.activityuid.name}</td>
											<td>{signup.volunteer.name}</td>
											<td>{signup.volunteer.telephone}</td>
											<td><f:if condition="{signup.signtime}">
												<f:then>{signup.signtime->f:format.date(format:'Y-m-d H:i')}</f:then>
												<f:else>--</f:else>
											</f:if></td>
											<td><f:if condition="{signup.checktime}">
												<f:then>{signup.checktime->f:format.date(format:'Y-m-d H:i')}</f:then>
												<f:else>--</f:else>
											</f:if></td>
											<td>
												<f:if condition="{signup.status}=='0'">
													<f:then>报名成功</f:then>
													<f:else>签到成功</f:else>
												</f:if>
											</td>
											<td><f:link.action action="delete" arguments="{signup : signup}"
												onclick="return confirm('您确定要删除吗?');"
												class="btn btn-danger btn-xs delete btn-del">删除</f:link.action></td>
										</tr>
									</f:for>
								</tbody>
							</table>
						</div>
					</div>
				</f:widget.paginate>
			</div>
		</div>
	</f:section>

</html>